package com.fy56.platform.goodsTracking.web.restful.api.controller;

import com.fy56.platform.goodsTracking.web.restful.api.model.ResultModel;
import com.fy56.platform.goodsTracking.web.restful.api.model.ResultStatus;
import com.wordnik.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by XTK on 2017-04-28.
 */
@RestController
@RequestMapping("/api/v1/orderTrack")
public class OrderTrackController {
    private static final Logger log = LoggerFactory.getLogger(QueryController.class);

    @RequestMapping(value = "/callBack", method = RequestMethod.POST)
    public Object callBack(@RequestParam(value = "param") String param) {
        log.info("无车承运人订单回调:" + param);
        return new ResponseEntity(ResultModel.ok(), HttpStatus.OK);
    }
}
